#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
    extern "C" {
#endif

//-------------------------include C Header File start------------------------//
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "Uart_debug.h"
#include "RTC.h"
#include "RELAY.h"
#include "spi.h"
#include "IIC.h"
//-------------------------include C Header File end--------------------------//
//-------------------------Defined start--------------------------------------//

//-------------------------Defined end----------------------------------------//
//-------------------------defined variable start-----------------------------//
#define JUDGE_SUCCESS_STATE(x)		((x)?true:false)
#define APP_RUN_STATE(A,B)			((A)?(B):printf("%s = %d\r\n",#A,A))
#define PRINTF_INIT_STATE(A,B)		(A?printf("%s success!!\r\n",#B):printf("%s fail!!\r\n",#B))
//-------------------------defined variable end-------------------------------//
//-------------------------Function declaration start-------------------------//
//-------------------------Function declaration end---------------------------//

#ifdef __cplusplus
    }
#endif

#endif 


